DX11 INSTANCE OBJECT

Creates a new instance from the given object.
Instances use the same mesh data to draw all instances in a single draw call (actually it's one mesh per draw call, so a complex object will cause more than one).
The instance object itself along with the individual limbs of an instance can be transformed (moved / rotated / scaled) independantly of the parent object.
Instances are also subject to frustum culling during rendering, as well as depth sorting - however the depth sorting can only take place among the instanced meshes
themselves since everything is drawn per instance type. As such this can cause issues when using instanced translucent objects since the draw order may not account
for properly drawing geometry that should be seen through an instance before said transparent instance.

  Syntax
Return Dword = DX11 INSTANCE OBJECT(sourceObject)
  Parameters
sourceObject
Dword
The source object to create an instance from. If this object is also an instance, its parent object will be instanced.

  Returns

The created object instance.

  See also

OBJECT Functions Menu
DX11 Function Categories